import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'
import getters from './getters'

Vue.use(Vuex)

const state = {
   //用于保存添加到购物车的商品列表
   goodsCarts:[]
}

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters
})
